package jman.competition10;

public class Student {
	private String name;
	private int homework=0;
	private int result=0;
	private int id;
	public Student(String name,int id){
		this.name=name;
		this.id=id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getHomework() {
		return homework;
	}
	public void setHomework(int homework) {
		this.homework = homework;
	}
	public int getResult() {
		return result;
	}
	public void setResult(int result) {
		this.result = result;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public void doHomework(int result){
		this.homework=1;
		setResult(result);
	}
	public boolean equals(Student user){
		return this.id==user.getId();
	}
}
